package com.nus.fellowmark.modules.assignment.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.nus.fellowmark.common.utils.PageUtils;
import com.nus.fellowmark.entity.GradeCalculationConfigEntity;
import com.nus.fellowmark.modules.assignment.dto.ConfigDTO;

import java.util.Map;

/**
 * 
 *
 * @author Chen Ruoyi
 * @email chenruoyisz@gmail.com
 * @date 2023-09-03 20:18:08
 */
public interface GradeCalculationConfigService extends IService<GradeCalculationConfigEntity> {

    PageUtils queryPage(Map<String, Object> params);

    boolean addOrUpdateConfig(ConfigDTO configDTO);

    GradeCalculationConfigEntity getGradeConfig(Integer assignmentId);

    boolean initConfig(Integer id);
}

